﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static O.M.Production.Domain.EnumModel;

namespace O.M.Production.Domain.DTO.Produce_work_order
{
    /// <summary>
    /// 工序流程关系表DTO
    /// </summary>
    public class working_procedure_DTO
    {
        /// <summary>
        /// 工序流程关系id
        /// </summary>
        public int working_procedure_id { get; set; }

        /// <summary>
        /// 工单编号
        /// </summary>
        public string? Work_order_Id {  get; set; }

        /// <summary>
        /// 工序流程编号
        /// </summary>
        public string? working_procedure_code { get; set; }

        /// <summary>
        /// 工艺流程编号
        /// </summary> 
        public string? process_flow_id { get; set; }

        /// <summary>
        /// 工序编号
        /// </summary> 
        public string? working_id { get; set; }

        /// <summary>
        /// 工作名称
        /// </summary> 
        public string? working_name { get; set; }

        /// <summary>
        /// 加工顺序
        /// </summary> 
        public int job_order { get; set; }

        /// <summary>
        /// 工艺流程
        /// </summary> 
        public string? process_flow { get; set; }

        /// <summary>
        /// 负责人
        /// </summary> 
        public Person_In_Charge? person_in_charge { get; set; }

        /// <summary>
        /// 所在部门
        /// </summary> 
        public Department? department { get; set; }

        /// <summary>
        /// 计划开始时间
        /// </summary> 
        public DateTime? planned_start_time { get; set; }

        /// <summary>
        /// 计划结束时间
        /// </summary> 
        public DateTime? planned_end_time { get; set; }

        /// <summary>
        /// 实际开始时间
        /// </summary> 
        public DateTime? actual_start_time { get; set; }

        /// <summary>
        /// 实际结束时间
        /// </summary>
        public DateTime? actual_end_time { get; set; }

        /// <summary>
        /// 计划产量
        /// </summary> 
        public int designed_output { get; set; }

        /// <summary>
        /// 完工数量
        /// </summary> 
        public int completed_quantity { get; set; }

        /// <summary>
        /// 合格数量
        /// </summary> 
        public int qualified_quantity { get; set; }

        /// <summary>
        /// 合格率
        /// </summary> 
        public decimal percent_of_pass { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public int state { get; set; }
    }
}
